
include rule.mak

SUBDIRS=system project ui share
INCLUDE=include
UIH=ui
SYSTEM=system

LIBS=system/system.a project/project.a ui/ui.a lib/libjpeg.a


all:
	@for dir in $(SUBDIRS); do \
		make -C $$dir;\
	done

install:
	$(foreach N,$(SUBDIRS),make -C $(N) install;)
	$(CC) main.cpp -I$(INCLUDE) -I$(UIH) -I$(SYSTEM) $(LIBS) -lpthread -o main
clean:
	rm main -rf
	$(foreach N,$(SUBDIRS),make -C $(N) clean;)
